const userInfo = {
    state: {
      userData: '',
      changeStatus: 0
    },
    mutations: {
        SET_USERINFO: (state, info) => {
          state.userData = info
        },
        SET_STATUS: (state, status) => {
            state.changeStatus = status
        }
    },
    actions: {
        setUserinfo({ commit }, data) {
            commit('SET_USERINFO', data)
        },
        setStatus({ commit }, status) {
            commit('SET_STATUS', status) 
        }
    }
}

export default userInfo